package com.xiaoyu.cloudmusic.dao;

import com.xiaoyu.cloudmusic.pojo.ReportDetail;
import com.xiaoyu.cloudmusic.pojo.Song;
import com.xiaoyu.cloudmusic.pojo.StyleParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminMapper {
    public int login(@Param("name")String name,@Param("password")String password);
    public int removeSongs(@Param("ids") List<Integer> ids);
    public int shelvesSongs(@Param("ids") List<Integer> ids);
    public int addSong(Song song);
    public String getCommentMessage(int id);
    public int addReportInfo(ReportDetail reportDetail);
    public List<Song> paging(@Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);
    public void updateStyleCount(@Param("style")String style,@Param("count")int count);
    public List<StyleParam> getStyleCounts();
    public void log_login(@Param("uuid")String uuid,@Param("account")String account,@Param("time")String time,@Param("status")String status);
    public List<ReportDetail> getReportInfo();
    public int revokeReport(@Param("id")int id);
}
